package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.pojo.ListGroupSortPoJo;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author: wufeng
 * @date: 2018/12/4 10:23
 * @desrcption: 分组排序对象
 */
@Getter
@Setter
@ToString
public class ListGroupSortDTO extends BaseDTO {
    private static final long serialVersionUID = 1469291250746966091L;

    @Valid
    @NotEmpty(message = "{dto.msg.listGroupSort.listGroupList.NotEmpty}")
    @Getter(onMethod_ = {@QueryIgnore})
    private List<ListGroupSortPoJo> listGroupList;

    @NotNull(message = "{dto.msg.listGroupSort.appId.NotNull}")
    private Long appId;


    @NotNull(message = "{dto.msg.listGroupSort.formId.NotNull}")
    private Long formId;
}
